package com.lin.zoo.controller;

import com.lin.zoo.po.Messege;
import com.lin.zoo.service.UserService;
import com.lin.zoo.service.VisitorService;


public class UserController {
    private UserService userService=new UserService();
    private VisitorService visitoeService = new VisitorService();
    //作为一个导向Service的通道
    public Messege login(String userName,String password){return userService.login(userName,password);}//传入账号的名字与密码，进行信息确认，返回登录信息
    public Messege sign(String userName,String password){return userService.sign(userName,password);}//传入名字和密码，进行新访客的注册
    public Messege disuser(){return userService.disuser();}//用于识别登录用户的身份
    public Messege reinformation(String card,String number){return visitoeService.reinformation(card,number);}//传入需要修改的信息，修改用户的个人信息
    public Messege signvisitor(String card,String number){return userService.signvisitor(card,number);}//用于注册游客时的个人信息的填写
}
